<?php
/**
 * PsiFramework
 *
 * Php Simple Framework
 *
 * PHP version 5.3
 *
 * @category  PsiFramework.Plugins.Form.Classes.Util.Json
 * @package   PsiFramework.Plugins.Form.Classes.Util.Json
 * @author    Remi San <remi.san@gmail.com>
 * @copyright 2011 Remi San
 * @license   http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @version   SVN: <svn_id>
 * @link      http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Form\Classes\Util\Json\JsonFormElement.html
 */

namespace PsiFramework\Plugins\Form\Classes\Util\Json;

/**
 * The json Form Element class
 *
 * This is the json form element model class
 *
 * @category PsiFramework.Plugins.Form.Classes.Util.Json
 * @package  PsiFramework.Plugins.Form.Classes.Util.Json
 * @author   Remi San <remi.san@gmail.com>
 * @license  http://creativecommons.org/licenses/by/3.0/  Creative Commons CC BY 3.0
 * @link     http://www.psiframework.com/phpdoc/classes/db_\PsiFramework\Plugins\Form\Classes\Util\Json\JsonFormElement.html
 */
class JsonFormElement
{
    /**
     * @var string
     */
    protected /*string*/  $_label ;
    /**
     * @var string
     */
    protected /*string*/  $_style ;
    /**
     * @var string
     */
    protected /*string*/  $_className ;
    /**
     * @var string
     */
    protected /*string*/  $_field ;
    /**
     * @var string
     */
    protected /*string*/  $_group ;
    /**
     * @var boolean
     */
    protected /*boolean*/ $_displayWithValues = true ;

    /**
     * Getter for the label
     *
     * @return string
     */
    public function getLabel()
    {
        return $this->_label ;
    }

    /**
     * Setter for the label
     *
     * @param string $label The label
     *
     * @return void
     */
    public function setLabel(/*string*/ $label)
    {
        $this->_label = $label ;
    }

    /**
     * Getter for the style
     *
     * @return string
     */
    public function getStyle()
    {
        return $this->_style ;
    }

    /**
     * Setter for the style
     *
     * @param string $style The style
     *
     * @return void
     */
    public function setStyle(/*string*/ $style)
    {
        $this->_style = $style ;
    }

    /**
     * Getter for the class name
     *
     * @return string
     */
    public function getClassName()
    {
        return $this->_className ;
    }

    /**
     * Setter for the class name
     *
     * @param string $className The class name
     *
     * @return void
     */
    public function setClassName(/*string*/ $className)
    {
        $this->_className = $className ;
    }

    /**
     * Getter for the field
     *
     * @return string
     */
    public function getField()
    {
        return $this->_field ;
    }

    /**
     * Setter for the field
     *
     * @param string $field The field
     *
     * @return void
     */
    public function setField(/*string*/ $field)
    {
        $this->_field = $field ;
    }

    /**
     * Getter for the displayWithValues variable
     *
     * @return bool
     */
    public function isDisplayedWithValues()
    {
        return $this->_displayWithValues ;
    }

    /**
     * Setter for the displayWithValues variable
     *
     * @param bool $displayWithValues The displayWithValues variable
     *
     * @return void
     */
    public function setDisplayWithValues(/*boolean*/ $displayWithValues)
    {
        $this->_displayWithValues = $displayWithValues ;
    }

    /**
     * Getter for the group
     *
     * @return string
     */
    public function getGroup()
    {
    	return $this->_group ;
    }
    
    /**
     * Setter for the group
     *
     * @param string $group The group
     *
     * @return void
     */
    public function setGroup(/*string*/ $group)
    {
    	$this->_group = $group ;
    }
}
